<template>
    <div class="center">
       <table width="1074" border="0" cellpadding="0" cellspacing="0" style="width:805.50pt;border-collapse:collapse;table-layout:fixed;">
   <colgroup><col width="116" style="mso-width-source:userset;mso-width-alt:3712;">
   <col width="66" style="mso-width-source:userset;mso-width-alt:2112;">
   <col width="74" style="mso-width-source:userset;mso-width-alt:2368;">
   <col width="97" style="mso-width-source:userset;mso-width-alt:3104;">
   <col width="113" style="mso-width-source:userset;mso-width-alt:3616;">
   <col width="62" style="mso-width-source:userset;mso-width-alt:1984;">
   <col width="111" style="mso-width-source:userset;mso-width-alt:3552;">
   <col width="119" style="mso-width-source:userset;mso-width-alt:3808;">
   <col width="72" style="width:54.00pt;">
   <col width="100" style="mso-width-source:userset;mso-width-alt:3200;">
   <col width="72" span="3" style="width:54.00pt;">
   <col width="120" style="mso-width-source:userset;mso-width-alt:3840;">
   <col width="91" style="mso-width-source:userset;mso-width-alt:2912;">
   <col width="84" style="mso-width-source:userset;mso-width-alt:2688;">
   <col width="115" style="mso-width-source:userset;mso-width-alt:3680;">
   <col width="152" style="mso-width-source:userset;mso-width-alt:4864;">
   <col width="72" span="2" style="width:54.00pt;">
   <col width="122" style="mso-width-source:userset;mso-width-alt:3904;">
   <col width="72" span="3" style="width:54.00pt;">
   <col width="52" style="mso-width-source:userset;mso-width-alt:1664;">
   </colgroup><tbody><tr height="22.67" style="height:17.00pt;mso-height-source:userset;mso-height-alt:340;">
    <td class="xl65" height="22.67" width="1002" colspan="11" style="height:17.00pt;width:751.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;text-align:center;" x:str="">电气第一种工作票</td>
    <td class="xl69" width="72" rowspan="2" style="width:54.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">No：</td>
    <td class="xl67" colspan="10" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.rwdId}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;" x:str="">风电场：</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.orgName_dictText}}</td>
    <td class="xl68" x:str="">编号：</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.id}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">作业队伍类别</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.teamType_dictText}}</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <j-dict-select-tag v-model="teamType" dictCode="team_type" placeholder="请选择作业队伍类别" style="width:410px;"/>
    </td>
    <td class="xl66" x:str="">工作协调人</td>
     <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.workConcertPerson}}</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-input placeholder="请输入工作协调人" v-model="workConcertPerson"/>
    </td>
    <td class="xl66" x:str="">班组（部门）</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.concertClass1}}</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <a-input placeholder="请输入所在班组" v-model="concertClass1"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">有限空间类别</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.limitSpaceType_dictText}}</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <j-dict-select-tag v-model="limitSpaceType" dictCode="limit_space_type" placeholder="请选择有限空间类别" style="width:410px;"/>
    </td>
    <td class="xl66" x:str="">第二监护人</td>
     <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.secondConcertClass}}</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <a-input placeholder="请输入第二监护人" v-model="secondConcertClass"/>
    </td>
    <td class="xl66" x:str="">班组（部门）</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.concertClass2}}</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-input placeholder="请输入所在班组" v-model="concertClass2"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人（监护人）</td>
    <td class="xl66 workOndutyPerson" v-if="!drafts">{{this.bb.workOndutyPerson0}}</td>
    <td class="xl66 workOndutyPerson" v-if="drafts">
        <a-input placeholder="请输入工作负责人"  v-model="workOndutyPerson0"/>
    </td>
    <td class="xl66" x:str="">班组（部门）</td>
     <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.ondutyClass}} </td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <a-input placeholder="请输入所在班组" v-model="ondutyClass"/>
    </td>
    <td class="xl66" x:str="">附页：</td>
    <td class="xl66" v-if="!drafts">{{this.bb.opageNum}}</td>
    <td class="xl66" v-if="drafts">
        <a-input v-model="opageNum"/>
    </td>
    <td class="xl67" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">张</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">工作班成员</td>
    <td class="xl69" colspan="11" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.classMember}}</td>
    <td class="xl69" colspan="11" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-textarea
      v-model="classMember"
      placeholder="请输入工作班成员"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作任务</td>
      <td class="xl69" colspan="4" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.workTask}}</td>
    <td class="xl69" colspan="4" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-textarea
      v-model="workTask"
      placeholder="请输入工作任务"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
    <td class="xl69" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作内容</td>
    <td class="xl69" colspan="6" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.workDetail}}</td>
    <td class="xl69" colspan="6" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-textarea
      v-model="workDetail"
      placeholder="请输入工作内容"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">计划工作时间</td>
    <td class="xl70" x:str="">自</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.planStartDate}} </td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="planStartDate"></j-date>
    </td>
    <td class="xl69" x:str="">至</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.planEndDate}}</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="planEndDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">需运行人员执行的安全措施（必要时可附页绘图说明）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="6" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施（由工作负责人填写）</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">执行情况（由工作人员填写）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
       <td class="xl69" height="57" colspan="6" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.safeAction}}</td>
    <td class="xl69" height="57" colspan="6" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <a-textarea
      v-model="safeAction"
      placeholder="请输入安全措施（由工作负责人填写）"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
    <td class="xl69" colspan="6" rowspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.actionDetail}}</td>
    <td class="xl69" colspan="6" rowspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
        <a-textarea
      v-model="actionDetail"
      placeholder="请输入执行情况（由工作人员填写）"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">需检修自理的安全措施（没有时填“无”）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="6" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施（由工作负责人填写）</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">执行情况（由工作人员填写）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
        <td class="xl69" height="57" colspan="6" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.safeAction1}} </td>
    <td class="xl69" height="57" colspan="6" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-textarea
      v-model="safeAction1"
      placeholder="请输入安全措施（由工作负责人填写）"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
     <td class="xl69" colspan="5" rowspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!drafts">{{this.bb.actionDetail1}}</td>
    <td class="xl69" colspan="5" rowspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="drafts">
         <a-textarea
      v-model="actionDetail1"
      placeholder="请输入执行情况（由工作人员填写）"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
    <td class="xl79" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">地线（地<br>刀）编号</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl69"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票签发</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">签发时间</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAssignDate}} </td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAssignDate"></j-date>
    </td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票签发人签名</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignPerson}}</td>
    <td class="xl69" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
         <a-input v-model="ticketAsignPerson"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票接收</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">收到工作票时间</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.ticketAcceptDate}}</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAcceptDate"></j-date>
    </td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">值长或班长签名</td>
     <td class="xl67" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.ticketAcceptSign}}</td>
    <td class="xl67" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="ticketAcceptSign"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">批准工作结束时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控值负责人签名</td>
    <td class="xl67" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">风电场：</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" x:str="">编号：</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票运行许可：确认本工作票“需运行人员执行的安全措施”已全部落实。</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">运行许可工作开始时间</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingtime"> {{this.bb.runPermmitDate}}</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingtime">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="runPermmitDate"></j-date>
    </td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作许可人签名</td>
     <td class="xl66"  v-if="!pendingxkr">{{this.bb.workPermmitSign2}}</td>
    <td class="xl66"  v-if="pendingxkr">
         <a-input v-model="workPermmitSign2" />
    </td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名</td>
     <td class="xl73" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"  v-if="!pendingfzr"> {{this.bb.workOndutySign2}}</td>
    <td class="xl73" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"  v-if="pendingfzr">
         <a-input v-model="workOndutySign2"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票检修许可（无检修自理安措时不用填写）：确认本工作票“检修自理的安全措施”已全部落实。</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修许可工作开始时间：</td>
    <td class="xl67" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
    <td class="xl69" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人变更（无变更可不填写）：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">原工作负责人</td>
    <td class="xl66"></td>
    <td class="xl66" x:str="">离去，变<span style="display:none;">更</span></td>
    <td class="xl66"></td>
    <td class="xl71" colspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">为工作负责人</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">签发人批准时间</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" colspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票签发人签名：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">许可人通知时间</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" colspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作许可人签名：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作班成员变更（无变更可不填写）：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">变更时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl68" x:str="">离去人员名单</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" x:str="">新增人员名单</td>
    <td class="xl69" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">工作负责人签名</td>
    <td class="xl66"></td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">学习安全措施、危险点及分析措施签名</td>
    <td class="xl69" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">变更时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl68" x:str="">离去人员名单</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" x:str="">新增人员名单</td>
    <td class="xl69" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">工作负责人签名</td>
    <td class="xl66"></td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">学习安全措施、危险点及分析措施签名</td>
    <td class="xl69" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票延期（无延期可不填写）：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">有效期延长到:</td>
    <td class="xl73" colspan="11" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">申请时间：</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" x:str="">工作负责人签名<span style="display:none;">：</span></td>
    <td class="xl71"></td>
    <td class="xl74" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" style="height:14.25pt;" x:str="">批准时间：</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" x:str="">值长或班组长签<span style="display:none;">名：</span></td>
    <td class="xl71"></td>
    <td class="xl74" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修设备试运（不用试运的工作可不填写）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修设备试运前，工作票交回，所列安全措施已拆除，可以试运。</td>
    <td class="xl69" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修设备试运后，工作票所列安全措施已全部执行，可以重新工作</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许试运时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作许可人</td>
    <td class="xl69" x:str="">工作负责人</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许复工时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作许可人</td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">未试运原因</td>
    <td class="xl69" colspan="11" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票终结：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">全部工作已结束，检修自理安全措施已拆除，工作人员已全部撤离，材料工具、现场已全部清理完毕。工作票已交回，检修借用的接地线全部交回。</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">工作票终结时间</td>
     <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!endtime">{{this.bb.ticketOverDate}}</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="endtime">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketOverDate" style="width:140px;"></j-date>
    </td>
    <td class="xl66" x:str="">工作负责人签名</td>
    <td class="xl66" v-if="!endfzr">{{this.bb.workOndutySign3}}</td>
    <td class="xl66" v-if="endfzr">
        <a-input v-model="workOndutySign3" />
    </td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作许可人签名</td>
     <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!endxkr">{{this.bb.workPermmitSign0}}</td>
    <td class="xl69" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="endxkr">
        <a-input v-model="workPermmitSign0" />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">集控确认时间</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控值班负责人签名</td>
    <td class="xl69" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">接地线恢复情况：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">接地线闸刀 共</td>
    <td class="xl66"></td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">组，已拆除（拉开）</td>
    <td class="xl66"></td>
    <td class="xl66" x:str="">组，未拆<span style="display:none;">除或未拉开接地线（刀闸）的编号</span></td>
    <td class="xl66"></td>
    <td class="xl66"></td>
    <td class="xl66"></td>
    <td class="xl69" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="19" colspan="8" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">值长或班组长签名</td>
    <td class="xl69" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="12" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">备注</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="57" colspan="12" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">关联操作票</td>
    <td class="xl71" colspan="11" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人闭环管理确认</td>
    <td class="xl71" colspan="10" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">终结确认时间：</td>
     <td class="xl73" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!final">{{this.bb.ticketClosedDate}}</td>
    <td class="xl73" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="final">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketClosedDate"></j-date>
    </td>
    <td class="xl66" x:str="">工作负责人签名</td>
     <td class="xl73" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!final">{{this.bb.workOndutySign4}}</td>
    <td class="xl73" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="final">
        <a-input v-model="workOndutySign4" />
    </td>
   </tr>

  </tbody></table>
    </div>
</template>
<script>
import JDate from '@/components/jeecg/JDate.vue'
import JDictSelectTag from '@/components/dict/JDictSelectTag.vue'
import store from '@/store'
import{Time} from '@/utils/time'
import { httpAction, getAction,postAction,putAction } from '@/api/manage'
export default {
     components: {
      JDate,
      JDictSelectTag,
    },
    data(){
        return{
            psOkDate:'',
            logType:'',
            teamType:'', //作业队伍类别
            limitSpaceType:'',//有限空间类别,
            workConcertPerson:'',//工作协调人
            concertClass1:'',//工作协调人班组
            secondConcertClass:'',//第二监护人
            concertClass2:'',//第二监护人班组
            workOndutyPerson0:store.getters.userInfo.realname,//工作负责人
            ondutyClass:'',//工作负责人班组
            classMember:'',//工作班组成员
            workTask:'',//工作任务
            workDetail:this.bb.workDetail,//工作内容
            safeAction:'',//安全措施
            actionDetail:'',//执行情况
            planStartDate:'',//计划工作时间（开始）
            planEndDate:'',//计划工作时间（结束）
             safeAction1:'',//安全措施
            actionDetail1:'',//执行情况
            opageNum:'',//附页
            drafts:false,
            ticketAsignPerson:store.getters.userInfo.realname,//签发人
            ticketAssignDate:Time(),//签发时间
            sign:false,
            workPermmitSign22:'',//工作许可人
            workOndutySign2:'',//工作负责人
            receive:false,
            ticketAcceptSign:store.getters.userInfo.realname,//运行接收人
            ticketAcceptDate:Time(),//运行接收时间
            pendingtime:false,
            pendingfzr:false,
            pendingxkr:false,
            runPermmitDate:'',
            workPermmitSign2:'',
            workOndutySign2:'',
            endtime:false,
            endfzr:false,
            endxkr:false,
            workPermmitSign0:'',//闭环许可人
            workOndutySign3:'',//闭环负责人
            ticketOverDate:'',//闭环时间
            final:false,
            workOndutySign4:store.getters.userInfo.realname,
            ticketClosedDate:Time(),



        }
    },
    props:['bb'], 
    methods:{
        refresh(){
            return this.bb.type
        },
        back(){
            var obj = {}
            if(this.drafts == true){
                obj = {
                    teamType:this.teamType,
                    limitSpaceType:this.limitSpaceType,
                    workConcertPerson:this.workConcertPerson,
                    concertClass1:this.concertClass1,
                    secondConcertClass:this.secondConcertClass,
                    concertClass2:this.concertClass2,
                    workOndutyPerson0:this.workOndutyPerson0,
                    ondutyClass:this.ondutyClass,
                    classMember:this.classMember,
                    workTask:this.workTask,
                    workDetail:this.workDetail,
                    safeAction:this.safeAction,
                    actionDetail:this.actionDetail,
                    planStartDate:this.planStartDate,
                    planEndDate:this.planEndDate,
                    safeAction1:this.safeAction1,
                    actionDetail1:this.actionDetail1,
                    opageNum:this.opageNum,
                    id:this.bb.id,
                    workOndutyPerson0:this.workOndutyPerson0
                }
            }else if( this.sign == true){
                obj = {
                    id:this.bb.id,
                    ticketAssignDate:this.ticketAssignDate,
                    ticketAsignPerson:this.ticketAsignPerson,
                }
            }else if(this.receive == true){
                 obj = {
                    id:this.bb.id,
                    ticketAcceptSign:this.ticketAcceptSign,
                    ticketAcceptDate:this.ticketAcceptDate,
                }
            }else if(this.pendingfzr == true){
                if(this.pendingxkr == false && this.pendingtime == false){
                    obj = {
                        id:this.bb.id,
                        workOndutySign2:this.workOndutySign2,
                    }
                }else if(this.pendingxkr == false && this.pendingtime == true){
                    obj = {
                        id:this.bb.id,
                        workOndutySign2:this.workOndutySign2,
                        runPermmitDate:this.runPermmitDate,
                    }
                }
            }else if(this.pendingxkr == true){
                if(this.pendingfzr == false && this.pendingtime == false){
                    obj = {
                        id:this.bb.id,
                        workPermmitSign2:this.workPermmitSign2,
                    }
                }else if(this.pendingfzr == false && this.pendingtime == true){
                    obj = {
                        id:this.bb.id,
                        workPermmitSign2:this.workPermmitSign2,
                        runPermmitDate:this.runPermmitDate,
                    }
                }
                
            }else if(this.endfzr == true){
                if(this.endxkr == false && this.endtime == false){
                    obj = {
                        id:this.bb.id,
                        workOndutySign3:this.workOndutySign3,
                    }
                }else if(this.endxkr == false && this.endtime == true){
                    obj = {
                        id:this.bb.id,
                        workOndutySign3:this.workOndutySign3,
                        ticketOverDate:this.ticketOverDate,
                    }
                }
            }else if(this.endxkr == true){
                if(this.endfzr == false && this.endtime == false){
                    obj = {
                        id:this.bb.id,
                        workPermmitSign0:this.workPermmitSign0,
                    }
                }else if(this.endfzr == false && this.endtime == true){
                    obj = {
                        id:this.bb.id,
                        workPermmitSign0:this.workPermmitSign0,
                        ticketOverDate:this.ticketOverDate,
                    }
                }
                
            }else if(this.final == true){
                 obj = {
                        id:this.bb.id,
                        workOndutySign4:this.workOndutySign4,
                        ticketClosedDate:this.ticketClosedDate,
                    }
            }
             
            return obj
        },
    },
    mounted(){
        console.log('bb',this.bb)
        console.log('a',store.getters.userInfo)
        var params={
            userid:store.getters.userInfo.id
        }
        getAction('/sys/user/queryUserRole',params).then(res=>{
            console.log('dengji',res)
            if(res.result[0] == '1364736776864395266'){  //负责人
                if(this.bb.ticketAcceptSign != null && this.bb.workOndutySign2 == null){
                     this.workOndutySign2 = store.getters.userInfo.realname
                     this.pendingfzr = true
                    this.pendingxkr = false  
                }
                
                    if(this.bb.runPermmitDate !== null && this.bb.workOndutySign3 == null){
                        this.workOndutySign3 = store.getters.userInfo.realname
                        this.endfzr = true
                        this.endxkr = false
                        
                }
                if(this.bb.ticketOverDate != null && this.bb.ticketClosedDate == null){
                    this.final = true
                   
                }
            }else if(res.result[0] == '1364736908854947842'){  //许可人
                if(this.bb.ticketAcceptSign != null && this.bb.workPermmitSign2 == null){
                        this.workPermmitSign2 = store.getters.userInfo.realname
                        this.pendingxkr = true
                        this.pendingfzr = false
                }
                
                if(this.bb.runPermmitDate !== null && this.bb.workPermmitSign0 == null){
                        this.workPermmitSign0 = store.getters.userInfo.realname
                        this.endfzr = false
                        this.endxkr = true
                       
                }
            }
            if((this.bb.workOndutySign2 != null && this.workPermmitSign2 != '') || (this.workOndutySign2 != '' && this.bb.workPermmitSign2 != null)){
                this.runPermmitDate = Time()
                this.pendingtime = true
              
            }
            if((this.bb.workOndutySign3 != null && this.workPermmitSign0 != '') || (this.workOndutySign3 != '' && this.bb.workPermmitSign0 != null)){
                    this.ticketOverDate = Time()
                        this.endtime = true
                       
            }
            if(this.bb.ticketClosedDate != null && this.bb.ticketClosedDate == null){
                    this.final = true
                    
                }
            
        })

        if(this.bb.safeAction == null){
            this.drafts = true
        }
        if(this.bb.safeAction != null && this.bb.ticketAsignPerson == null){
            this.sign = true
        }
        if(this.bb.ticketAsignPerson != null && this.bb.ticketAcceptSign == null){
            this.receive = true
        }
       
    }
}
</script>
<style scoped>
td{
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
    color: windowtext;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    font-family: 宋体;
    text-decoration: none;
    border: 1px solid #000;
     }
.center{
    width:1074px;
     background-color: #E5EDF0 !important;
     } 

</style>